<%@ page language="java"
	import="java.util.*,java.io.*"
	pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>添加公司介绍</title>
		<link href="../css/login.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="../css/table.css"/>
<script type="text/javascript" src="../js/table.js"></script>
<script type="text/javascript" src="js/check.js"></script>
		<style type="text/css">
			input {
				border: 0px;
				height: 18px;
				color: #007AB5;
			}
			body{
				text-align: center;
			}
		</style>
	<script charset="utf-8" src="kindeditor-4.0.6/kindeditor-min.js"></script>
		<script charset="utf-8" src="kindeditor-4.0.6/lang/zh_CN.js"></script>
		<script>
			var editor;
			KindEditor.ready(function(K) {
				editor = K.create('textarea[name="desc"]', {
					allowFileManager : true
				});
				K('input[name=getHtml]').click(function(e) {
					alert(editor.html());
				});
				K('input[name=isEmpty]').click(function(e) {
					alert(editor.isEmpty());
				});
				K('input[name=getText]').click(function(e) {
					alert(editor.text());
				});
				K('input[name=selectedHtml]').click(function(e) {
					alert(editor.selectedHtml());
				});
				K('input[name=setHtml]').click(function(e) {
					editor.html('<h3>Hello KindEditor</h3>');
				});
				K('input[name=setText]').click(function(e) {
					editor.text('<h3>Hello KindEditor</h3>');
				});
				K('input[name=insertHtml]').click(function(e) {
					editor.insertHtml('<strong>插入HTML</strong>');
				});
				K('input[name=appendHtml]').click(function(e) {
					editor.appendHtml('<strong>添加HTML</strong>');
				});
				K('input[name=clear]').click(function(e) {
					editor.html('');
				});
			});
		</script>
	</head>

	<body>
		<form action="intro-update.action" method="post" onsubmit="javascript:return checkIntro();">
		<input type="hidden" name="typeId" value="${intro.typeId }" />
		<input type="hidden" name="language" value="${language }" />
		<br />
		<div><h1>公司介绍信息錄入</h1></div>
		<font color="red">插入图片方法：由于安全考虑，本编辑器不提供图片上传功能，统一由 左侧菜单【图片管理】-【查看全部图片】，然后点击进入大图页面，选中图片复制，然后在编辑器中 粘贴 就可以。</font>
		<br />
		<div style="margin: 0 auto;text-align: center;">
			<table width="600" border="0" cellspacing="0" cellpadding="0" align="center">
	      <tr>
	        <td width="9" background="images/tab_12.gif">&nbsp;</td>
	        <td bgcolor="#f3ffe3"><table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#c0de98" onmouseover="changeto()"  onmouseout="changeback()">
	          <tr>
	            <td colspan="2" height="26" bgcolor="#FFFFFF" class="STYLE1"><div align="center" class="STYLE2 STYLE1"><p align="left">首页概括信息：</p>
	            	<textarea id="summary" name="summary" style="width:800px;height:150px;"><c:if test="${language eq 'cn'}">${intro.summary }</c:if><c:if test="${language eq 'en'}">${intro.summaryEN }</c:if><c:if test="${language eq 'jp'}">${intro.summaryJP }</c:if></textarea>
	            	<br/><br/>
	            </div></td>
	          </tr>
	           <tr>
	            <td colspan="2" height="26" bgcolor="#FFFFFF" class="STYLE1"><div align="center" class="STYLE2 STYLE1">
	            	<p align="left">详细信息：</p>
	            	<textarea id="desc" name="desc" style="width:800px;height:400px;visibility:hidden;"><c:if test="${language eq 'cn'}">${intro.desc }</c:if><c:if test="${language eq 'en'}">${intro.descEN }</c:if><c:if test="${language eq 'jp'}">${intro.descJP }</c:if></textarea>
	            </div></td>
	          </tr>
	          <tr>
	            <td width="50%" height="26" bgcolor="#FFFFFF" class="STYLE1"><div align="right" class="STYLE2 STYLE1" style="margin-right: 20px;"><input type="submit" value="修改" /></div></td>
	            <td width="50%" height="26" bgcolor="#FFFFFF" class="STYLE1"><div align="left" class="STYLE2 STYLE1" style="margin-left: 20px;"><input type="reset" value="重置" /></div></td>
	          </tr>
	        </table></td>
	        <td width="9" background="images/tab_16.gif">&nbsp;</td>
	      </tr>
	    </table>
	    <br/>
	    <br/>
    </div>
		</form>
	</body>
</html>
